import { service } from '../index'
import { Iorder } from '../typing/order'

// 报名信息填写页面数据
export function getGroupDetail(data) {
  return service.post<Iorder>('/order/groupDetail', data)
}

// 报名提交
export function getAddOrder(data) {
  return service.post<string>('/order/addOrder', data)
}

// 收银台
export function getCashier(data) {
  return service.post<object>('/order/cashier', data)
}

// 支付
export function getOrderPay(data) {
  return service.post<string>('/order/orderPay', data)
}

// 检查是否有待支付订单
export function getcheckOrder(data) {
  return service.post('/order/checkOrder', data)
}
// 获取确认报名时的订单信息
export function activeInfo(data) {
  return service.post('/order/activeInfo', data)
}
//验证码
export function checkCode(data) {
  return service.post('/order/checkCode', data)
}